﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TrangChu.master" AutoEventWireup="true"
    CodeFile="ThanhToan.aspx.cs" Inherits="ThanhToan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%">
        <tr>
            <td>
                <div class="cnt_block1">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="c_top_c">
                                &nbsp;<br />
                                &nbsp;THÔNG TIN ĐƠN ĐẶT HÀNG<br />
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="showthongbao" runat="server" Text=""></asp:Label>
                <asp:Panel ID="panelthanhtoan" Width="100%" Visible="true" runat="server">
                    <table width="100%">
                        <tr>
                            <td colspan="2">
                                <span style="color: red"><b>THÔNG TIN NGƯỜI MUA HÀNG</b></span>
                        </tr>
                        <tr>
                            <td width="30%">
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="color: #0000ff">HỌ VÀ TÊN</span>
                            </td>
                            <td>
                                <asp:Label ID="hovaten" ForeColor="#800080" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="color: #0000ff">ĐỊA CHỈ</span>
                            </td>
                            <td>
                                <asp:Label ID="diachi" ForeColor="#800080" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="color: #0000ff">ĐIỆN THOẠI</span>
                            </td>
                            <td>
                                <asp:Label ID="dienthoai" ForeColor="#800080" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="color: #0000ff">EMAIL</span>
                            </td>
                            <td>
                                <asp:Label ID="email" ForeColor="#800080" runat="server" Text="22"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <hr color="#008000" size="1">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <span style="color: red"><b>THÔNG TIN GIỎ HÀNG</b></span>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:GridView ID="danhsachgiohang" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                    ForeColor="#333333" GridLines="None" PageSize="5" Width="100%">
                                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="TÊN HÀNG" HeaderStyle-HorizontalAlign="left">
                                            <ItemTemplate>
                                                <a href="" title='<%#DataBinder.Eval(Container,"DataItem.Ten_SP") %>'>
                                                    <asp:Label ID="Label2" runat="server" Text='<%#(((string)DataBinder.Eval(Container, "DataItem.Ten_SP")).Length > 30 ? ((string)DataBinder.Eval(Container, "DataItem.Ten_SP")).Substring(0, 29) + "..." : DataBinder.Eval(Container, "DataItem.Ten_SP")) %>'></asp:Label></a>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="So_Luong" HeaderText="SỐ LƯỢNG">
                                            <ItemStyle HorizontalAlign="Center" ForeColor="Red" />
                                        </asp:BoundField>
                                        <asp:BoundField HeaderStyle-HorizontalAlign="right" DataField="Don_Gia" HeaderText="ĐƠN GI&#193;"
                                            DataFormatString="{0:#,##0} VNĐ" ReadOnly="True">
                                            <ItemStyle ForeColor="Green" HorizontalAlign="right" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="TH&#192;NH TIỀN" HeaderStyle-HorizontalAlign="right">
                                            <ItemTemplate>
                                                <div align="right">
                                                    <asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0:#,##0} VNĐ", float.Parse(DataBinder.Eval(Container,"DataItem.Don_Gia").ToString()) * (int)DataBinder.Eval(Container,"DataItem.So_Luong")) %>'></asp:Label></div>
                                            </ItemTemplate>
                                            <ItemStyle ForeColor="Red" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                                <table width="100%">
                                    <tr>
                                        <td colspan="3">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <font color="#800080">Tổng Số Tiền</font> &nbsp;
                                        </td>
                                        <td align="right">
                                            <asp:Label ID="tongtien" runat="server" Text="<font color='red'>0</font>"></asp:Label>
                                        </td>
                                        <td align="right" width="20%">
                                            <font color='blue'>VNĐ</font>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <font color="#800080">Tổng Số Hàng Bạn Đã Chọn Mua</font> &nbsp;
                                        </td>
                                        <td align="right">
                                            <asp:Label ID="tonghang" runat="server" Text="<font color='red'>0</font>"></asp:Label>
                                        </td>
                                        <td align="right" width="20%">
                                            <font color='green'>Sản Phẩm</font>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <hr color="#008000" size="1">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <span style="color: red"><b>THÔNG TIN NGƯỜI NHẬN HÀNG</b></span>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="color: #0000ff">TÊN NGƯỜI NHẬN</span>
                            </td>
                            <td>
                                <asp:TextBox Width="100%" ID="hovatennn" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="color: #0000ff">ĐỊA CHỈ NGƯỜI NHẬN</span>
                            </td>
                            <td>
                                <asp:TextBox Width="100%" ID="diachinn" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="color: #0000ff">ĐIỆN THOẠI NGƯỜI NHẬN</span>
                            </td>
                            <td>
                                <asp:TextBox Width="100%" ID="dienthoainn" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="color: #0000ff">NGÀY GIAO</span>
                            </td>
                            <td>
                                <asp:Label ID="ngaygiao" ForeColor="#800080" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <asp:Calendar ID="ngaygiao1" runat="server" BackColor="White" BorderColor="#C000C0"
                                    Font-Names="Verdana" Font-Size="8pt" ForeColor="#0000C0" Height="180px" Width="200px"
                                    CellPadding="4" DayNameFormat="Shortest" NextMonthText='<font color="white">SAU</font>'
                                    PrevMonthText="" onselectionchanged="ngaygiao1_SelectionChanged">
                                    <SelectedDayStyle BackColor="Red" ForeColor="White" Font-Bold="True" />
                                    <TodayDayStyle BackColor="Yellow" ForeColor="Black" />
                                    <OtherMonthDayStyle ForeColor="#808080" />
                                    <NextPrevStyle VerticalAlign="Bottom" />
                                    <DayHeaderStyle Font-Bold="True" Font-Size="7pt" BackColor="#CCCCCC" />
                                    <TitleStyle BackColor="Maroon" Font-Bold="True" ForeColor="White" BorderColor="#C000C0" />
                                    <SelectorStyle BackColor="#CCCCCC" />
                                    <WeekendDayStyle BackColor="#FFFFCC" />
                                </asp:Calendar>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <asp:Button ID="dongymuahang" runat="server" Text="ĐỒNG Ý MUA HÀNG" 
                                    onclick="dongymuahang_Click" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
